package lab02.test37;

/**
 * Created by Adminitrator on 2017/11/20.
 */
public class StudentDemo {
    public static void main(String[] args) {
        Student[] students=new Student[2];
        students[0]=new Undergraduate();
        students[0].name="张三";
        students[0].type="本科生";
        students[0].scores[0]=78;
        students[0].scores[1]=88;
        students[0].scores[2]=78;
        students[1]=new Graduate();
        students[1].name="李四";
        students[1].type="研究生";
        students[1].scores[0]=78;
        students[1].scores[1]=88;
        students[1].scores[2]=78;
        System.out.println("姓名 类型 状态");
        for (int i=0;i<students.length;i++){
            System.out.println(students[i].name+" "+
                    students[i].type+" "+
                    students[i].calgrade());
        }

    }
}
